
using System;
using System.Linq;
using Csla;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class LocationAdvertisementDetailBO : Csla.BusinessBase<LocationAdvertisementDetailBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in LocationAdvertisementDetailBO
			//AuthorizationRules.AllowRead(LocationAdversitementDetailIDProperty, "LocationAdvertisementDetailBOReadGroup");
			//AuthorizationRules.AllowRead(LocationAdversitementIDProperty, "LocationAdvertisementDetailBOReadGroup");
			//AuthorizationRules.AllowRead(NewsHouseIDProperty, "LocationAdvertisementDetailBOReadGroup");
			//AuthorizationRules.AllowRead(DescriptionProperty, "LocationAdvertisementDetailBOReadGroup");
			//AuthorizationRules.AllowRead(LocationInWebProperty, "LocationAdvertisementDetailBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "LocationAdvertisementDetailBOReadGroup");

			//AuthorizationRules.AllowWrite(LocationAdversitementIDProperty, "LocationAdvertisementDetailBOWriteGroup");
			//AuthorizationRules.AllowWrite(NewsHouseIDProperty, "LocationAdvertisementDetailBOWriteGroup");
			//AuthorizationRules.AllowWrite(DescriptionProperty, "LocationAdvertisementDetailBOWriteGroup");
			//AuthorizationRules.AllowWrite(LocationInWebProperty, "LocationAdvertisementDetailBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "LocationAdvertisementDetailBOWriteGroup");
		}
		#endregion //Authorization Rules

		private void AssignParentKey(HousingInfo.DataLinQ.LocationAdversitementDetail data, LocationAdvertisementBO parent)
		{
			//CHANGE_ME! // data.ParentKeyId = parent.Id;
		}
	}
}
